package homework.day08;

import java.util.*;

public class Test03 {
    public static void main(String[] args) {
        Collection<Integer> list = new HashSet<>();
        while (list.size() < 10) {
            Random rand = new Random();
            int r = (int) (Math.random() * 10 + 1);
            list.add(r);
        }
        System.out.println(list);
    }
}


